package model

import (
	commonmodel "helloword01/31chatroom/common/model"
	"net"
)

var CUR_USER *CurUser

type CurUser struct {
	Conn net.Conn
	commonmodel.User
}

func InitCurUser(Conn net.Conn, userId int, UserStatus int) {
	CUR_USER = &CurUser{
		Conn: Conn,
		User: commonmodel.User{
			UserId:     userId,
			UserStatus: UserStatus,
		},
	}
}
